package com.zoroki.student_score_system.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName scorevo
 */
@TableName(value ="scorevo")
@Data
public class ScoreVo implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 登录账号（学号/工号）
     */
    private String username;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 性别
     */
    private Object gender;

    /**
     * 
     */
    private Integer classId;

    /**
     * 班级名称（如：通信1601）
     */
    private String className;

    /**
     * 
     */
    private Integer courseId;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 
     */
    private Integer teacherId;

    /**
     * 真实姓名
     */
    private String teacherName;

    /**
     * 学分
     */
    private BigDecimal credit;

    /**
     * 
     */
    private Integer scoreId;

    /**
     * 成绩
     */
    private BigDecimal score;

    /**
     * 满分
     */
    private Integer fullMark;

    /**
     * 考试日期
     */
    private Date examDate;

    /**
     * 学期名称（如：2016届上学期）
     */
    private String semesterName;

    /**
     * 
     */
    private Date semesterStartDate;

    /**
     * 
     */
    private Date semesterEndDate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ScoreVo other = (ScoreVo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getRealName() == null ? other.getRealName() == null : this.getRealName().equals(other.getRealName()))
            && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
            && (this.getClassId() == null ? other.getClassId() == null : this.getClassId().equals(other.getClassId()))
            && (this.getClassName() == null ? other.getClassName() == null : this.getClassName().equals(other.getClassName()))
            && (this.getCourseId() == null ? other.getCourseId() == null : this.getCourseId().equals(other.getCourseId()))
            && (this.getCourseName() == null ? other.getCourseName() == null : this.getCourseName().equals(other.getCourseName()))
            && (this.getTeacherId() == null ? other.getTeacherId() == null : this.getTeacherId().equals(other.getTeacherId()))
            && (this.getTeacherName() == null ? other.getTeacherName() == null : this.getTeacherName().equals(other.getTeacherName()))
            && (this.getCredit() == null ? other.getCredit() == null : this.getCredit().equals(other.getCredit()))
            && (this.getScoreId() == null ? other.getScoreId() == null : this.getScoreId().equals(other.getScoreId()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getFullMark() == null ? other.getFullMark() == null : this.getFullMark().equals(other.getFullMark()))
            && (this.getExamDate() == null ? other.getExamDate() == null : this.getExamDate().equals(other.getExamDate()))
            && (this.getSemesterName() == null ? other.getSemesterName() == null : this.getSemesterName().equals(other.getSemesterName()))
            && (this.getSemesterStartDate() == null ? other.getSemesterStartDate() == null : this.getSemesterStartDate().equals(other.getSemesterStartDate()))
            && (this.getSemesterEndDate() == null ? other.getSemesterEndDate() == null : this.getSemesterEndDate().equals(other.getSemesterEndDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getRealName() == null) ? 0 : getRealName().hashCode());
        result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
        result = prime * result + ((getClassId() == null) ? 0 : getClassId().hashCode());
        result = prime * result + ((getClassName() == null) ? 0 : getClassName().hashCode());
        result = prime * result + ((getCourseId() == null) ? 0 : getCourseId().hashCode());
        result = prime * result + ((getCourseName() == null) ? 0 : getCourseName().hashCode());
        result = prime * result + ((getTeacherId() == null) ? 0 : getTeacherId().hashCode());
        result = prime * result + ((getTeacherName() == null) ? 0 : getTeacherName().hashCode());
        result = prime * result + ((getCredit() == null) ? 0 : getCredit().hashCode());
        result = prime * result + ((getScoreId() == null) ? 0 : getScoreId().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getFullMark() == null) ? 0 : getFullMark().hashCode());
        result = prime * result + ((getExamDate() == null) ? 0 : getExamDate().hashCode());
        result = prime * result + ((getSemesterName() == null) ? 0 : getSemesterName().hashCode());
        result = prime * result + ((getSemesterStartDate() == null) ? 0 : getSemesterStartDate().hashCode());
        result = prime * result + ((getSemesterEndDate() == null) ? 0 : getSemesterEndDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", realName=").append(realName);
        sb.append(", gender=").append(gender);
        sb.append(", classId=").append(classId);
        sb.append(", className=").append(className);
        sb.append(", courseId=").append(courseId);
        sb.append(", courseName=").append(courseName);
        sb.append(", teacherId=").append(teacherId);
        sb.append(", teacherName=").append(teacherName);
        sb.append(", credit=").append(credit);
        sb.append(", scoreId=").append(scoreId);
        sb.append(", score=").append(score);
        sb.append(", fullMark=").append(fullMark);
        sb.append(", examDate=").append(examDate);
        sb.append(", semesterName=").append(semesterName);
        sb.append(", semesterStartDate=").append(semesterStartDate);
        sb.append(", semesterEndDate=").append(semesterEndDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}